import { createApp } from 'vue';
import { createPinia } from 'pinia';
import App from './App.vue';
import router from './router';
import { createHead } from '@vueuse/head';
import './assets/index.postcss';
import antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
import mitt from 'mitt';
const head = createHead();
const app = createApp(App);
app.config.globalProperties.$mybus = new mitt(); //mitt在vue3中挂载到全局

app.use(createPinia());
app.use(router);
app.use(head);
app.use(antd);

app.mount('#app');
// export default new mitt()   //局部
